package Test;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

//import com.sun.awt.AWTUtilities; 


public class GlassTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		JFrame window = new JFrame("Dio");


		JPanel panel = new JPanel(new BorderLayout());
		window.add(panel);

		JEditorPane editor = null;
		editor = new JEditorPane();

		panel.add(editor, BorderLayout.CENTER);

		JPanel topPanel = new JPanel(new FlowLayout());
		topPanel.add(new JButton("Scalzo"));
		panel.add(topPanel, BorderLayout.NORTH);

		JPanel rightPanel = new JPanel(new GridLayout(10, 1));
		rightPanel.add(new JButton("nella"));
		rightPanel.add(new JButton("valle"));
		rightPanel.add(new JButton("dei"));
		rightPanel.add(new JButton("chiodi"));
		panel.add(rightPanel, BorderLayout.EAST);

		JPanel bottomPanel = new JPanel(new FlowLayout());
		bottomPanel.add(new JLabel("Fine della storia"));
		panel.add(bottomPanel, BorderLayout.SOUTH);

		window.pack();
		window.setSize(new Dimension(1000, 600));
		window.setVisible(true);

		//style? 
		//java 6 needed
//		if ((AWTUtilities.isTranslucencySupported(AWTUtilities.Translucency.PERPIXEL_TRANSLUCENT)) &&
//				(AWTUtilities.isTranslucencyCapable(defaultTranslucencyCapableGC))) {
//			//perform translucency operations here
//		}

	}

}
